package com.example.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @version 1.0
 * @Author: LJP
 * @Description:       校验必填字段是否填写完整
 * @Date: Created in 14:55 2021/11/30
 */
@Target(value = ElementType.FIELD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface CheckField {

    /**
     * 默认提示信息
     */
    String message = "信息填写不完整";

    /**
     * 错误提示信息
     */
    String msg() default message;
}
